package com.sunny.instance;

/**
 * @Author zsunny
 * @Date 2018/9/22 20:24
 * @Mail zsunny@yeah.net
 */
public class A {
    protected void funA(){
        System.out.println("a funa");
    }
    private void funB(){
        System.out.println("a funb");
    }
    private void funC(){
        System.out.println("a func");
    }
    public void funABC(){
        funA();
        funB();
        funC();
    }
}

class B extends A{
    public void funA(){
        System.out.println("b funa");
    }
    public void funB(){
        System.out.println("b funb");
    }
    public void funC(){
        System.out.println("b func");
    }

    public static void main(String[] args) {
        B b = new B();
        b.funABC();
    }
}
